import React, {useContext} from "react"
import ContextDemo from "../lib/context-demo"

function ContextHook () {
  const context = useContext(ContextDemo)


  return <div style={context}>
    Context-hook 使用实例
  </div>
}

export default ContextHook